package com.ruan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.common.Result;
import com.ruan.pojo.CommonUser;
import com.ruan.pojo.Employee;
import com.ruan.pojoExt.CommonUserExt;

import javax.servlet.http.HttpServletRequest;

public interface CommonUserService extends IService<CommonUser> {
    Result register(CommonUser commonUser);

    Result employeeLogin(CommonUser commonUser);

    Result selectByPhone(String phone);

    void addUser(Employee employee, HttpServletRequest request);

    CommonUser selectOneByPhone(String phone);

    Result judgeStatus(Integer userId);

    Result selectUsername(String username);

    Result selectAdminUsername(String username);
}
